<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath();
	String curUrl = request.getRequestURI();
%>
<div id="left">
	<div class="sdmenu">
		<c:forEach var="item" items="${adminUser.sysMenuList }">
			<div
				<c:if test="${item.id != menu.parentId }">class="collapsed"</c:if>>
				<span class="menuLev1">${item.resourceName }</span>
				<c:if test="${item.hasChild }">
					<c:forEach var="user" items="${item.subMenuList }"
						varStatus="status">
						<c:choose>
							<c:when test="${user.isExtLink == 'N'}">
								<a href="<%=basePath %>${user.resourceUrl }"
									<c:if test="${user.id == menu.id }"> class="btn-info active" </c:if>>${user.resourceName }</a>
							</c:when>
							<c:otherwise>
								<a
									href="<%=basePath %>${user.resourceUrl }?tid=${adminUser.teacherInfo.id}"
									<c:if test="${user.id == menu.id }"> class="btn-info active" </c:if>>${user.resourceName }</a>
							</c:otherwise>
						</c:choose>
					</c:forEach>
				</c:if>
			</div>
		</c:forEach>
	</div>
</div>
<div class="switch"></div>